<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AlterHostAccountTable extends Migration
{
    protected $connection = 'guild';
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::table('guild_host_account_daily', function (Blueprint $table) {
            $table->double('video_share_income', 1)->default(0.0)->comment('主播视频分成');
            $table->double('voice_share_income', 1)->default(0.0)->comment('主播语音分成');
            $table->double('total_share_income', 1)->default(0.0)->comment('主播总分成');
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::table('guild_host_account_daily', function (Blueprint $table) {
            //
        });
    }
}
